Drop the --gtk-modules argument
authorMatthias Clasen <mclasen@redhat.com>
Tue, 27 Dec 2016 23:46:45 +0000 (18:46 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 19 Jan 2017 18:21:12 +0000 (13:21 -0500)
We don't need it; the environment variable is enough.

gtk/gtkmain.c

index 0a619202f96187506e2d2f1214894e7218abcc21..691c5892e107e81363a2fec83808c03bd55710ab 100644 (file)
@@ -420,26 +420,7 @@ gtk_arg_no_debug_cb (const char *key, const char *value, gpointer user_data)
 }
 #endif /* G_ENABLE_DEBUG */
 
-static gboolean
-gtk_arg_module_cb (const char *key, const char *value, gpointer user_data)
-{
-  if (value && *value)
-    {
-      if (gtk_modules_string)
-        g_string_append_c (gtk_modules_string, G_SEARCHPATH_SEPARATOR);
-      else
-        gtk_modules_string = g_string_new (NULL);
-      
-      g_string_append (gtk_modules_string, value);
-    }
-
-  return TRUE;
-}
-
 static const GOptionEntry gtk_args[] = {
-  { "gtk-module",       0, 0, G_OPTION_ARG_CALLBACK, gtk_arg_module_cb,   
-    /* Description of --gtk-module=MODULES in --help output */ N_("Load additional GTK+ modules"), 
-    /* Placeholder in --gtk-module=MODULES in --help output */ N_("MODULES") },
   { "g-fatal-warnings", 0, 0, G_OPTION_ARG_NONE, &g_fatal_warnings, 
     /* Description of --g-fatal-warnings in --help output */   N_("Make all warnings fatal"), NULL },
 #ifdef G_ENABLE_DEBUG